package Java9_11;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Work6 {
    public static void main(String[] args) {
        Calendar c =Calendar.getInstance();
        c.set(2021,0,1);
        SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd号");
        for (int i = 0; i <= 365 / 7; i++) {
            if (c.get(Calendar.DAY_OF_WEEK)==1){
                String s = df.format(c.getTime());
                System.out.println(s);
            }
            c.add(Calendar.DAY_OF_YEAR,1);
        }
    }
}
